package com.fuful.domian;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Orders {
    private String orderid;
    private Users uid;
    private float orderprice;
    private Date addtime;
    //一对多
    private List<OrdersDetails> details = new ArrayList<>();

    public List<OrdersDetails> getDetails() {
        return details;
    }

    public void setDetails(List<OrdersDetails> details) {
        this.details = details;
    }

    public Orders() {
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public Users getUid() {
        return uid;
    }

    public void setUid(Users uid) {
        this.uid = uid;
    }

    public float getOrderprice() {
        return orderprice;
    }

    public void setOrderprice(float orderprice) {
        this.orderprice = orderprice;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }
}
